
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '报销单',
    enableValidate: false
})

@Injectable()
export class DataGridComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'employeeID.employeeID_Name',
        name: "{{employeeID_EmployeeID_Name_9cda177f_p4x3}}",
        binding: 'employeeID.employeeID_Name',
        updateOn: 'blur',
        defaultI18nValue: '报销人',
    })
    employeeID_EmployeeID_Name: FormControl;

    @NgFormControl({
        id: 'domainID.domainID_name',
        name: "{{domainID_DomainID_name_33639652_uvc6}}",
        binding: 'domainID.domainID_name',
        updateOn: 'blur',
        defaultI18nValue: '所属部门',
    })
    domainID_DomainID_name: FormControl;

    @NgFormControl({
        id: 'billCode',
        name: "{{billCode_c41eab6f_u5x0}}",
        binding: 'billCode',
        updateOn: 'blur',
        defaultI18nValue: '单据编号',
    })
    billCode: FormControl;

    @NgFormControl({
        id: 'totalSum',
        name: "{{totalSum_9a3abc0f_rm2g}}",
        binding: 'totalSum',
        updateOn: 'blur',
        defaultI18nValue: '报帐金额',
    })
    totalSum: FormControl;

    @NgFormControl({
        id: 'billType',
        name: "{{billType_6c66ce5f_09ar}}",
        binding: 'billType',
        updateOn: 'change',
        defaultI18nValue: '报销类型',
    })
    billType: FormControl;

    @NgFormControl({
        id: 'billDate',
        name: "{{billDate_ab442bbe_hn0h}}",
        binding: 'billDate',
        updateOn: 'blur',
        valueConverter: new DateConverter('yyyy-MM-dd'),
        defaultI18nValue: '制单日期',
    })
    billDate: FormControl;

    @NgFormControl({
        id: 'projectID',
        name: "{{projectID_b93ca002_27am}}",
        binding: 'projectID',
        updateOn: 'blur',
        defaultI18nValue: '所属项目',
    })
    projectID: FormControl;

    @NgFormControl({
        id: 'billNote',
        name: "{{billNote_05d60079_u2js}}",
        binding: 'billNote',
        updateOn: 'blur',
        defaultI18nValue: '报销说明',
    })
    billNote: FormControl;

    @NgFormControl({
        id: 'projectMrg.projectMrg_Name',
        name: "{{projectMrg_ProjectMrg_Name_2b937789_jhtg}}",
        binding: 'projectMrg.projectMrg_Name',
        updateOn: 'blur',
        defaultI18nValue: '项目经理',
    })
    projectMrg_ProjectMrg_Name: FormControl;

    @NgFormControl({
        id: 'auditStatus',
        name: "{{auditStatus_9769d3ae_ioq3}}",
        binding: 'auditStatus',
        updateOn: 'change',
        defaultI18nValue: '稽核状态',
    })
    auditStatus: FormControl;

}